package com.gree.order.service;

import com.gree.commom.result.BaseResult;
import com.gree.order.entity.Order;
import com.gree.rpc.entity.Admin;
import com.gree.rpc.vo.CartResult;

/**
 * 订单服务
 */
public interface OrderService {

    /**
     * 生成订单
     * @param admin
     * @param cartResult
     * @return
     */
    BaseResult orderSave(Admin admin, CartResult cartResult);

    /**
     * 通过订单编号获取订单
     * @param orderSn
     * @return
     */
    Order selectOrderByOrderSn(String orderSn);
}
